---
title: Number Ticker
date: 2023-11-18
description: Animate numbers to count up or down to a target number
author: nyxb
published: true
video: https://cdn.nyxbui.design/number-ticker.mp4
---

<ComponentPreview name="number-ticker-demo" />


### Installation

<Tabs defaultValue="cli">

<TabsList>
  <TabsTrigger value="cli">CLI</TabsTrigger>
  <TabsTrigger value="manual">Manual</TabsTrigger>
</TabsList>
<TabsContent value="cli">

```bash
npx nyxb@latest add number-ticker
```

</TabsContent>

<TabsContent value="manual">

<Steps>

Copy and paste the following code into your project.

```text
components/ui/number-ticker.tsx
```

<ComponentSource name="number-ticker" />

</Steps>

</TabsContent>

</Tabs>


## Props

| Prop      | Type       | Description               | Default |
| --------- | ---------- | ------------------------- | ------- |
| value     | int        | The value to count to     | 0       |
| direction | up \| down | The direction to count in | up      |
